<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <title><?php echo $title; ?></title>
    </head>
    <body>
        <div id="wrap">
            <div id="header">
                <h1>Header</h1>
                <div id="nav">
                    <?php
                    if (isset ($menu))
                    foreach ($menu as $item) :
                    ?>
                    <div class="item">
                        <a href="<?php echo $item['link']?>"> <?php echo $item['name']?> </a>
                    </div>
                    <?php
                    endforeach;
                    ?>
                </div>
            </div>

            <div id="content">

            <?php echo $content; ?>
                
            </div>

            <div id="footer">
                <h2>footer</h2>
            </div>
        </div>
    </body>
</html>
